import { RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/Login.vue'),
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('@/views/login/Register.vue'),
    },
    {
        path: '/',
        name: 'main',
        component: () => import('@/views/Layout.vue'),
        children: [
            {
                path : '',
                name : "index",
                component: () => import('@/views/indexPages/Index.vue')
            },
            {
                path : 'lang',
                name : "lang",
                component: () => import('@/views/Lang.vue')
            },
            {
                path : 'md',
                name : "mdShow",
                component: () => import('@/views/MdShow.vue')
            },
            {
                path : 'mock',
                name : "mock",
                component: () => import('@/views/Mock.vue')
            }
        ],
    },
]

export default routes